/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved. 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.smarthome.base.dao.ShEquipmentDevIpcDao;
import com.smarthome.base.dao.base.BaseDaoImpl;
import com.smarthome.domain.bean.ShEquipmentDevIpc;

/**
 * ShEquipmentDevIpcDao 实现类
 * @author KongXiangyu
 * @since 2015-11-23
 */
@Repository("shEquipmentDevIpcDao")
public class ShEquipmentDevIpcDaoImpl extends BaseDaoImpl<ShEquipmentDevIpc, Long> implements ShEquipmentDevIpcDao {

    private final static String NAMESPACE = "com.smarthome.base.dao.ShEquipmentDevIpcDao.";

    // 返回本DAO命名空间,并添加statement
    public String getNameSpace(String statement) {
        return NAMESPACE + statement;
    }

    @Override
    public List<ShEquipmentDevIpc> selectList(ShEquipmentDevIpc ipc) {
        return this.selectList(getNameSpace("selectList"), ipc);
    }

    @Override
    public void updateByResidenceId(ShEquipmentDevIpc shEquipmentDevIpc) {
        this.update(getNameSpace("updateByResidenceId"), shEquipmentDevIpc);
    }

}